package com.scores.mapper;

import com.scores.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    List<Student> getAllStudentByPage(@Param("s") Student student, @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int getAllStudentCount(@Param("s") Student student);

    List<Student> getAllStudent(@Param("s") Student student);

    int addStudent(List<Student> students);

    int updateStudent(Student student);

    int deleteStudent(List<String> studentNo);

    int deleteStudentByNo(@Param("s") Student student);

    Student getAllStudentTeacherByNo(@Param("studentNo") Integer studentNo);

    Student getStudentByNo(@Param("studentNo") int studentNo);

    int updatePassword(@Param("studentNo") Integer studentNo, @Param("newPassword") String newPassword);


}
